<?php if($this->Session->read('Auth.User.role') === 'admin'): ?>
<ul class="submenu">
<li <?php if($this->params['action'] == 'index'): echo 'class="active"'; endif; ?> ><?php echo $this->Html->link('Holidays',array('action' => 'index')); ?></li>
<li <?php if($this->params['action'] == 'add'): echo 'class="active"'; endif; ?> ><?php echo $this->Html->link('Add holiday',array('action' => 'add')); ?></li>
</ul>
<?php endif; ?>

<?php
    echo $this->Form->create('Holiday'); ?>
    <?php if($this->Session->read('Auth.User.role') === 'superadmin' || $this->Session->read('Auth.User.role') === 'admin'): ?>
        <fieldset style="float:left; width:45%">
        <legend>Add Holiday</legend>
        <?php
		echo $this->Form->input('title', array('label' => 'Holiday name'));
        echo $this->Form->input('start_date', array('label' => 'Start date'));
        echo $this->Form->input('end_date', array('label' => 'End date')); ?>

        </fieldset>
    <?php 
	endif;
	echo $this->Form->input('id', array('type' => 'hidden')); ?>
	<p style="float:left;"><?php echo $this->Form->end('Save Holiday'); ?></p>
